let a='我是aaa';
let b='我是bbb';
let obj={
    a, //属性名和变量名一样,简单化a:a
    b
}
console.log(obj.a,obj.b);

let foo='foo11';
let obj1={
    [foo]:foo
    //[key]==>取的是变量赋值的内容
}
console.log(obj1.foo11);

let obj2={
    run(){
        return 111;
    }
}
console.log(obj2.run());
console.log(obj2.run.name);  //对象的方法的名称是什么


console.log(12=='12');
console.log(12==='12');
console.log(NaN===NaN);  //flase
console.log(+0 === -0);  //true

console.log(Object.is(+0,-0));  //flase
console.log(Object.is(NaN,NaN));  //true


console.log([12]===[12])
console.log({}==={})
console.log(Object.is({},{}));

const target={a:1};
const source1={b:2};
const source2={c:3};
Object.assign(target,source1,source2);
console.log(target);